package cn.cy.creation.d02;

public class ProtoTypeTest {

    public static void main(String[] args) throws CloneNotSupportedException {
        RealizeType type1 = new RealizeType("孙悟空");
        RealizeType type2 = type1.clone();
        type2.setName("六耳猕猴");
        type1.show();
        type2.show();
        /*System.out.println("type1 == type2 ? " + (type1 == type2));
        System.out.println("type1.equals(type2) ? "+ type1.equals(type2));*/
    }

}
